f6996c7d8b616d55657b5323e08ffbc19a40251d,core/java/src/net/i2p/client/naming/HostsTxtNamingService.java,HostsTxtNamingService,lookup,#String#,58

Before Change


    public Destination lookup(String hostname) {
        // If it's long, assume it's a key.
        if (hostname.length() >= 516)
            return lookupBase64(hostname);

        // check the list each time, reloading the file on each
        // lookup

After Change


    }
        
    public Destination lookup(String hostname) {
        Destination d = getCache(hostname);
        if (d != null)
            return d;

        // If it's long, assume it's a key.
        if (hostname.length() >= 516) {
            d = lookupBase64(hostname);
            // What the heck, cache these too
            putCache(hostname, d);
            return d;
        }

        List filenames = getFilenames();